#include "getrecordsettingsokbutton.h"
#include <tchar.h>
#include <windows.h>

HWND MyFindWindow()
{
	const int MyMaxParentWinCount = 1;
	TCHAR* A_szClassName[MyMaxParentWinCount] =
	{
		_T("Qt5QWindowIcon")
	};
	TCHAR* A_szWinName[MyMaxParentWinCount] =
	{
		_T("Record Settings")
	};
	HWND hLastWin = ::FindWindow((LPCTSTR)A_szClassName[0], (LPCTSTR)A_szWinName[0]);
	for (int i = 1; i < MyMaxParentWinCount; i++)
	{
		hLastWin = ::FindWindowEx(hLastWin, NULL,
			(LPCTSTR)A_szClassName[i], (LPCTSTR)A_szWinName[i]);
	}
	return hLastWin;
}


GetRecordSettingsOkButton::GetRecordSettingsOkButton(QWidget *parent)
	: QMainWindow(parent)
{
	ui.setupUi(this);

	HWND hWnd_RecordSettings = MyFindWindow();
	auto recordSetting = QWidget::find((WId)hWnd_RecordSettings);
}

GetRecordSettingsOkButton::~GetRecordSettingsOkButton()
{

}
